#include "Tcpserver.hpp"
#include <iostream>


// ./tcpserver port
int main(int argc, char* argv[]){
	if(argc != 2){
		std::cerr<<"Usage: ./tcpserver port"<<std::endl;
		return USAGE_ERR;
	}

	uint16_t port = std::stoi(argv[1]);

	Enable_Console();

	Tcpserver tsvr(port);

	tsvr.Init();

	tsvr.Run();

	return 0;
}